package com.test.service;

import com.test.dao.EmployeeDao;
import com.test.domain.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhou76
 * @Date 2021/11/25 0025 14:41
 */
@Service
public class EmployeeService {
    @Autowired
    private EmployeeDao employeeDao;


    public List<Employee> list(Map<String,Object> map){
        return employeeDao.list(map);
    }

    public int count(Map<String,Object> map){
        return employeeDao.count(map);
    }

    public int save(Employee employee){
        return employeeDao.save(employee);
    }

    public int update(Employee employee){
        return employeeDao.update(employee);
    }

    public int remove(Integer id){
        return employeeDao.remove(id);
    }

    public int batchRemove(Integer[] ids){
        return employeeDao.batchRemove(ids);
    }
}
